import React, { useEffect } from 'react'
import store from '../redux/store'
import { show, hide } from '../redux/actionCreator';

export default function Detail(props) {
  useEffect(()=>{
    store.dispatch(hide());
    return ()=>{
      store.dispatch(show());
    }
  })
  return (
    <div>
        这里是电影{props.match.params.myid}
    </div>
  )
}
